#ifndef _MAIN_WINDOW_H_
#define _MAIN_WINDOW_H_

#include "ui_main.h"
#include <osg/Group>
class NodeData;

class MainWindow : public QMainWindow
{
	Q_OBJECT

public:
	MainWindow();
	~MainWindow();

	class Document* getDocument();

private slots:
	void gridDimensionsChanged();
	void open();
	void save();
	void saveAs();
	void deleteSelected();
    void updatePropertiesGUI(QItemSelection selected);
    void setUniformScaleOfSelectedObjects(double);

private:
	void updateGrid();
    osg::PositionAttitudeTransform* patNode(QModelIndex index) const;
    NodeData* nodeData(QModelIndex index) const;

private:
	struct Private;
	Private* d;
};

#endif _MAIN_WINDOW_H_
